<?php
/**
 * Created by PhpStorm.
 * User: thanatos
 * Date: 2017/11/28
 * Time: 上午9:37
 */

namespace frontend\controllers;


use Yii;
use common\core\Controller;

class OauthController extends Controller{
    /**
     * 微信snsapi_userinfo授权回调
     * @return mixed
     */
    public function actionCallback()
    {
        return Yii::$app->wechat->authorizeRequired()->send();
    }
    
}